package com.ittest.service.impl.activemq.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;


//@Component
public class MessageListener {



    @JmsListener(destination = "order.queues.id")
    @SendTo("order.other.queues.id")
    public String recaive(String id){
        System.out.println("这是自动执行的消费，id:" + id);
        return "new" + id;
    }
}
